<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>后代选择器</title>
  <style>
    /* 后代选择器，包含选择器，注意元素选择符用空格隔开 */
    div p {
      background-color: yellow;
    }

    div span {
      color: blue;
      font-weight: bolder;
    }

    /* div>span {
      color: red;
      font-weight: bolder;
    } */

    p b {
      background-color: red;
    }

    p {
      background-color: blue;
    }

    div b {
      background-color: orange;
    }
  </style>
</head>

<body>
  <div>
    <span>55</span>
    <p>111111111111
      <span>13</span>
    </p>
  </div>
  <p>222
    <b>2222222222</b>
  </p>
  <div>
    <b>3333333333</b>
  </div>
</body>

</html>